// 引入服务器引入服务器引入服务器
import request from "@/utils/request"
// 品牌管理接口
export const reqTradeMarkList = (page, limit) => request({ url: `/admin/product/baseTrademark/${page}/${limit}`, method: 'get' });
// 添加和修改品牌接口
export const reqAddOrUpdateTradeMarkList = (trademark) => {
        // 添加携带三个参数 id 品牌名称和logo,更新携带两个参数 品牌名称,品牌logo
        if (trademark.id) {
            return request({
                url: "/admin/product/baseTrademark/update",
                method: "put",
                data: trademark
            })
        } else {
            return request({
                url: "/admin/product/baseTrademark/save",
                method: "post",
                data: trademark
            })
        }
    }
    // 删除品牌接口
export const reqDeleteTradeMark = (id) => {
    return request({
        url: `/admin/product/baseTrademark/remove/${id}`,
        method: "delete"
    })
}